function [ correct ] = checkColoring( graph, coloring )
%CHECKCOLORING Sprawdza czy graf jest pomalowany poprawnie.
    correct = 0;
    s = size(graph, 1);
    for i = 1:s
        for j = i+1:s
            if graph(i, j) == 1
                if (coloring(i) == coloring(j))
                    correct = correct +1;
                end
            end
        end
    end
end

